package com.ilvyou.data.lcs;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectPdetailEntity {
    private Long collectid;
    private Long periodid;
    private Integer periodmonth;
    private Long actid;
    private String actname;
    private Integer ruleid;
    private String rulecode;
    private Integer levelid;
    private String levelcode;
    private String repaymentdate;
    private BigDecimal tpayamount;
    private BigDecimal prepayamount;
    private BigDecimal pbillamount;
    private BigDecimal pinterestamount;
    private Integer poverdueday;
    private BigDecimal freeamount;
    private BigDecimal arepayamount;
    private BigDecimal abillamount;
    private BigDecimal ainterestamount;
    private Timestamp lastcalcdate;
    private BigDecimal cinterestamount;
    private BigDecimal prestbillamount;
    private BigDecimal prestinsamount;
    private Integer masteflag;
    private Integer finishedflag;
    private Timestamp finisheddate;
    private Integer syncflag;
    private Timestamp syncdate;
    private Integer status;
    private String createdname;
    private Timestamp createdon;
    private Long createdby;
    private String createdip;
    private String lastedname;
    private Timestamp lastedon;
    private Long lastedby;
    private String lastedip;

    public Long getCollectid() {
        return collectid;
    }

    public void setCollectid(Long collectid) {
        this.collectid = collectid;
    }

    public Long getPeriodid() {
        return periodid;
    }

    public void setPeriodid(Long periodid) {
        this.periodid = periodid;
    }

    public Integer getPeriodmonth() {
        return periodmonth;
    }

    public void setPeriodmonth(Integer periodmonth) {
        this.periodmonth = periodmonth;
    }

    public Long getActid() {
        return actid;
    }

    public void setActid(Long actid) {
        this.actid = actid;
    }

    public String getActname() {
        return actname;
    }

    public void setActname(String actname) {
        this.actname = actname;
    }

    public Integer getRuleid() {
        return ruleid;
    }

    public void setRuleid(Integer ruleid) {
        this.ruleid = ruleid;
    }

    public String getRulecode() {
        return rulecode;
    }

    public void setRulecode(String rulecode) {
        this.rulecode = rulecode;
    }

    public Integer getLevelid() {
        return levelid;
    }

    public void setLevelid(Integer levelid) {
        this.levelid = levelid;
    }

    public String getLevelcode() {
        return levelcode;
    }

    public void setLevelcode(String levelcode) {
        this.levelcode = levelcode;
    }

    public String getRepaymentdate() {
        return repaymentdate;
    }

    public void setRepaymentdate(String repaymentdate) {
        this.repaymentdate = repaymentdate;
    }

    public BigDecimal getTpayamount() {
        return tpayamount;
    }

    public void setTpayamount(BigDecimal tpayamount) {
        this.tpayamount = tpayamount;
    }

    public BigDecimal getPrepayamount() {
        return prepayamount;
    }

    public void setPrepayamount(BigDecimal prepayamount) {
        this.prepayamount = prepayamount;
    }

    public BigDecimal getPbillamount() {
        return pbillamount;
    }

    public void setPbillamount(BigDecimal pbillamount) {
        this.pbillamount = pbillamount;
    }

    public BigDecimal getPinterestamount() {
        return pinterestamount;
    }

    public void setPinterestamount(BigDecimal pinterestamount) {
        this.pinterestamount = pinterestamount;
    }

    public Integer getPoverdueday() {
        return poverdueday;
    }

    public void setPoverdueday(Integer poverdueday) {
        this.poverdueday = poverdueday;
    }

    public BigDecimal getFreeamount() {
        return freeamount;
    }

    public void setFreeamount(BigDecimal freeamount) {
        this.freeamount = freeamount;
    }

    public BigDecimal getArepayamount() {
        return arepayamount;
    }

    public void setArepayamount(BigDecimal arepayamount) {
        this.arepayamount = arepayamount;
    }

    public BigDecimal getAbillamount() {
        return abillamount;
    }

    public void setAbillamount(BigDecimal abillamount) {
        this.abillamount = abillamount;
    }

    public BigDecimal getAinterestamount() {
        return ainterestamount;
    }

    public void setAinterestamount(BigDecimal ainterestamount) {
        this.ainterestamount = ainterestamount;
    }

    public Timestamp getLastcalcdate() {
        return lastcalcdate;
    }

    public void setLastcalcdate(Timestamp lastcalcdate) {
        this.lastcalcdate = lastcalcdate;
    }

    public BigDecimal getCinterestamount() {
        return cinterestamount;
    }

    public void setCinterestamount(BigDecimal cinterestamount) {
        this.cinterestamount = cinterestamount;
    }

    public BigDecimal getPrestbillamount() {
        return prestbillamount;
    }

    public void setPrestbillamount(BigDecimal prestbillamount) {
        this.prestbillamount = prestbillamount;
    }

    public BigDecimal getPrestinsamount() {
        return prestinsamount;
    }

    public void setPrestinsamount(BigDecimal prestinsamount) {
        this.prestinsamount = prestinsamount;
    }

    public Integer getMasteflag() {
        return masteflag;
    }

    public void setMasteflag(Integer masteflag) {
        this.masteflag = masteflag;
    }

    public Integer getFinishedflag() {
        return finishedflag;
    }

    public void setFinishedflag(Integer finishedflag) {
        this.finishedflag = finishedflag;
    }

    public Timestamp getFinisheddate() {
        return finisheddate;
    }

    public void setFinisheddate(Timestamp finisheddate) {
        this.finisheddate = finisheddate;
    }

    public Integer getSyncflag() {
        return syncflag;
    }

    public void setSyncflag(Integer syncflag) {
        this.syncflag = syncflag;
    }

    public Timestamp getSyncdate() {
        return syncdate;
    }

    public void setSyncdate(Timestamp syncdate) {
        this.syncdate = syncdate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreatedname() {
        return createdname;
    }

    public void setCreatedname(String createdname) {
        this.createdname = createdname;
    }

    public Timestamp getCreatedon() {
        return createdon;
    }

    public void setCreatedon(Timestamp createdon) {
        this.createdon = createdon;
    }

    public Long getCreatedby() {
        return createdby;
    }

    public void setCreatedby(Long createdby) {
        this.createdby = createdby;
    }

    public String getCreatedip() {
        return createdip;
    }

    public void setCreatedip(String createdip) {
        this.createdip = createdip;
    }

    public String getLastedname() {
        return lastedname;
    }

    public void setLastedname(String lastedname) {
        this.lastedname = lastedname;
    }

    public Timestamp getLastedon() {
        return lastedon;
    }

    public void setLastedon(Timestamp lastedon) {
        this.lastedon = lastedon;
    }

    public Long getLastedby() {
        return lastedby;
    }

    public void setLastedby(Long lastedby) {
        this.lastedby = lastedby;
    }

    public String getLastedip() {
        return lastedip;
    }

    public void setLastedip(String lastedip) {
        this.lastedip = lastedip;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectPdetailEntity that = (CollectPdetailEntity) o;

        if (collectid != null ? !collectid.equals(that.collectid) : that.collectid != null) return false;
        if (periodid != null ? !periodid.equals(that.periodid) : that.periodid != null) return false;
        if (periodmonth != null ? !periodmonth.equals(that.periodmonth) : that.periodmonth != null) return false;
        if (actid != null ? !actid.equals(that.actid) : that.actid != null) return false;
        if (actname != null ? !actname.equals(that.actname) : that.actname != null) return false;
        if (ruleid != null ? !ruleid.equals(that.ruleid) : that.ruleid != null) return false;
        if (rulecode != null ? !rulecode.equals(that.rulecode) : that.rulecode != null) return false;
        if (levelid != null ? !levelid.equals(that.levelid) : that.levelid != null) return false;
        if (levelcode != null ? !levelcode.equals(that.levelcode) : that.levelcode != null) return false;
        if (repaymentdate != null ? !repaymentdate.equals(that.repaymentdate) : that.repaymentdate != null)
            return false;
        if (tpayamount != null ? !tpayamount.equals(that.tpayamount) : that.tpayamount != null) return false;
        if (prepayamount != null ? !prepayamount.equals(that.prepayamount) : that.prepayamount != null) return false;
        if (pbillamount != null ? !pbillamount.equals(that.pbillamount) : that.pbillamount != null) return false;
        if (pinterestamount != null ? !pinterestamount.equals(that.pinterestamount) : that.pinterestamount != null)
            return false;
        if (poverdueday != null ? !poverdueday.equals(that.poverdueday) : that.poverdueday != null) return false;
        if (freeamount != null ? !freeamount.equals(that.freeamount) : that.freeamount != null) return false;
        if (arepayamount != null ? !arepayamount.equals(that.arepayamount) : that.arepayamount != null) return false;
        if (abillamount != null ? !abillamount.equals(that.abillamount) : that.abillamount != null) return false;
        if (ainterestamount != null ? !ainterestamount.equals(that.ainterestamount) : that.ainterestamount != null)
            return false;
        if (lastcalcdate != null ? !lastcalcdate.equals(that.lastcalcdate) : that.lastcalcdate != null) return false;
        if (cinterestamount != null ? !cinterestamount.equals(that.cinterestamount) : that.cinterestamount != null)
            return false;
        if (prestbillamount != null ? !prestbillamount.equals(that.prestbillamount) : that.prestbillamount != null)
            return false;
        if (prestinsamount != null ? !prestinsamount.equals(that.prestinsamount) : that.prestinsamount != null)
            return false;
        if (masteflag != null ? !masteflag.equals(that.masteflag) : that.masteflag != null) return false;
        if (finishedflag != null ? !finishedflag.equals(that.finishedflag) : that.finishedflag != null) return false;
        if (finisheddate != null ? !finisheddate.equals(that.finisheddate) : that.finisheddate != null) return false;
        if (syncflag != null ? !syncflag.equals(that.syncflag) : that.syncflag != null) return false;
        if (syncdate != null ? !syncdate.equals(that.syncdate) : that.syncdate != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (createdname != null ? !createdname.equals(that.createdname) : that.createdname != null) return false;
        if (createdon != null ? !createdon.equals(that.createdon) : that.createdon != null) return false;
        if (createdby != null ? !createdby.equals(that.createdby) : that.createdby != null) return false;
        if (createdip != null ? !createdip.equals(that.createdip) : that.createdip != null) return false;
        if (lastedname != null ? !lastedname.equals(that.lastedname) : that.lastedname != null) return false;
        if (lastedon != null ? !lastedon.equals(that.lastedon) : that.lastedon != null) return false;
        if (lastedby != null ? !lastedby.equals(that.lastedby) : that.lastedby != null) return false;
        if (lastedip != null ? !lastedip.equals(that.lastedip) : that.lastedip != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = collectid != null ? collectid.hashCode() : 0;
        result = 31 * result + (periodid != null ? periodid.hashCode() : 0);
        result = 31 * result + (periodmonth != null ? periodmonth.hashCode() : 0);
        result = 31 * result + (actid != null ? actid.hashCode() : 0);
        result = 31 * result + (actname != null ? actname.hashCode() : 0);
        result = 31 * result + (ruleid != null ? ruleid.hashCode() : 0);
        result = 31 * result + (rulecode != null ? rulecode.hashCode() : 0);
        result = 31 * result + (levelid != null ? levelid.hashCode() : 0);
        result = 31 * result + (levelcode != null ? levelcode.hashCode() : 0);
        result = 31 * result + (repaymentdate != null ? repaymentdate.hashCode() : 0);
        result = 31 * result + (tpayamount != null ? tpayamount.hashCode() : 0);
        result = 31 * result + (prepayamount != null ? prepayamount.hashCode() : 0);
        result = 31 * result + (pbillamount != null ? pbillamount.hashCode() : 0);
        result = 31 * result + (pinterestamount != null ? pinterestamount.hashCode() : 0);
        result = 31 * result + (poverdueday != null ? poverdueday.hashCode() : 0);
        result = 31 * result + (freeamount != null ? freeamount.hashCode() : 0);
        result = 31 * result + (arepayamount != null ? arepayamount.hashCode() : 0);
        result = 31 * result + (abillamount != null ? abillamount.hashCode() : 0);
        result = 31 * result + (ainterestamount != null ? ainterestamount.hashCode() : 0);
        result = 31 * result + (lastcalcdate != null ? lastcalcdate.hashCode() : 0);
        result = 31 * result + (cinterestamount != null ? cinterestamount.hashCode() : 0);
        result = 31 * result + (prestbillamount != null ? prestbillamount.hashCode() : 0);
        result = 31 * result + (prestinsamount != null ? prestinsamount.hashCode() : 0);
        result = 31 * result + (masteflag != null ? masteflag.hashCode() : 0);
        result = 31 * result + (finishedflag != null ? finishedflag.hashCode() : 0);
        result = 31 * result + (finisheddate != null ? finisheddate.hashCode() : 0);
        result = 31 * result + (syncflag != null ? syncflag.hashCode() : 0);
        result = 31 * result + (syncdate != null ? syncdate.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (createdname != null ? createdname.hashCode() : 0);
        result = 31 * result + (createdon != null ? createdon.hashCode() : 0);
        result = 31 * result + (createdby != null ? createdby.hashCode() : 0);
        result = 31 * result + (createdip != null ? createdip.hashCode() : 0);
        result = 31 * result + (lastedname != null ? lastedname.hashCode() : 0);
        result = 31 * result + (lastedon != null ? lastedon.hashCode() : 0);
        result = 31 * result + (lastedby != null ? lastedby.hashCode() : 0);
        result = 31 * result + (lastedip != null ? lastedip.hashCode() : 0);
        return result;
    }
}
